import type { FC } from "react";
import View from "../View";
import styles from './index.module.scss'
import { NormalList, NormalListItem } from "./style";

interface IndexProps {
  item: Entries
}

const Index: FC<IndexProps> = ({ item }) => {
  if (!item?.list || !item.list?.length) {
    return null
  }
  return <NormalList >
    {
      [...item.list].map((t, index) => {
        return <div key={index}>
          <NormalListItem >
            {
              t
                ? <>
                  {t.name}
                </>
                : null
            }

          </NormalListItem>

        </div>
      })
    }
  </NormalList>
}

export default Index;
